//
//  ResultSet.h
//  iModern
//
//  Created by Ralf on 5/13/15.
//  Copyright (c) 2015 com.starlooking. All rights reserved.
//

@import Foundation;

@interface ResultSet : NSObject

- (id)initWithParameters:(id)_data statusCode:(NSInteger)_statusCode errorCode:(NSInteger)_errorCode errorMessage:(NSString *)_errorMessage;

@property(strong) id        data;
@property(assign) NSInteger statusCode;
@property(assign) NSInteger errorCode;
@property(strong) NSString  *errorMessage;

- (BOOL)isEmpty;

- (BOOL)hasErrors;

- (NSArray *)toArray;

- (NSMutableArray *)toMutableArray;

- (NSDictionary *)toDictionary;

- (NSMutableDictionary *)toMutableDictionary;

@end
